lionsApp.factory('lionsHttp', ['httpConfig', '$resource', function (httpConfig, $resource) {
    return $resource('', {}, {
        indexList: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/team/findList',
            isArray: false
        },
        detail: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/team/findById',
            isArray: false
        },
        areaList: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/areaList',
            isArray: false
        },
        teamList: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/teamList',
            isArray: false
        },
        userList: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/userList',
            isArray: false
        },
        total: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/statistics/findAllMoney',
            isArray: false
        },
        createUser: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/create',
            isArray: false
        },
        updateUser: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/update',
            isArray: false
        },
        donationList: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/team/donationList',
            isArray: false
        },
        rankingPersonal: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/queryAll',
            isArray: false
        },
        rankingAll: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/order/queryAll',
            isArray: false
        },
        allDone: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/queryFullDonation',
            isArray: false
        },
        userInfo: {
            cache: false,
            method: 'POST',
            headers: httpConfig.headers,
            url: httpConfig.api + '/user/queryDetail',
            isArray: false
        }
    })
}])
